<?php if($level == 0):?>
<ul id="<?php print $type; ?>menu-<?php print $menu_name ?>" class="<?php print $type; ?>-menu level<?php print $level; ?> <?php print $direction; ?> clear-block"><?php print $tree;?></ul>
<?php else:?>
	<?php if($has_cols):?>
	<div class="<?php print $type ?> has-cols level<?php print $level ;?> clear-block">
	  <?php print $tree;?>
	  <?php if($extra_content): ?>
	  <div class="col">
    <?php print $extra_content;?>
    </div>
    <?php endif;?>
	</div>
	<?php else:?>
	<ul class="<?php print $type ?> level<?php print $level ;?>"><?php print $tree;?></ul>
	<?php endif?>
<?php endif;?>